import Vue from "vue"
import Vuex from 'vuex'
import posts from './modules/posts.js'

Vue.use(Vuex)

export default () => {
    return new Vuex.Store({
        state: () => ({}),
        mutations: {},
        actions: {},
        getters: {},
        modules: {
            posts
        }
    })
}